package com.zhiyou.service;

import com.zhiyou.bean.Product;
import com.zhiyou.bean.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    User getUser(User user);

    User getUserByPhone(String phone);

    int updateUserPwd(User user);

    int identifyUser(User user);

    List<User> getAllUser();


    Integer updateUserById(User user);

    int deleteUserById(Integer id);


    List<Product> getUserMoney();

    List<User> getUserByName(String username );

    List<Product> getUserAndProductByName(String username);

    List<User> getUserByNameAudit(String realname,int i);

    List<User> getAllUserAudit(int i);

    int auditUser(Integer id,int status);

    //邮箱登录
    List<User> login(String username, String password) throws Exception;

    //手机号登录
    List<User> loginPhone(String phone, String password) throws Exception;

    //邮箱注册
    int zhuceEmail(String email, String username, String password);

    //手机号注册
    int ZhucePhone(String Phone, String username, String password);

    //邮箱查重
    List<User> emailchachong(String email);

    //    用户名查重
    List<User> usernamechachong(String username);

    //    手机号查重
    List<User> phonechachong(String phone);
}
